<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Wed, 30 Sep 2026 17:53:42 +0000</lastBuildDate>
    <item>
      <title>GHSA-mjmj-j48q-9wg2 — SnakeYaml Constructor Deserialization Remote Code Execution</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-mjmj-j48q-9wg2</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Maven: org.yaml:snakeyaml&lt;/p&gt;
&lt;p&gt;### Summary
SnakeYaml&amp;#39;s `Constructor` class, which inherits from `SafeConstructor`, allows
any type be deserialized given the following line:&lt;/p&gt;
&lt;p&gt;new Yaml(new Constructor(TestDataClass.class)).load(yamlContent);&lt;/p&gt;
&lt;p&gt;Types do not have to match the types of properties in the
target class. A `ConstructorException` is thrown, but only after a malicious
payload is deserialized.&lt;/p&gt;
&lt;p&gt;### Severity
High, lack of type checks during deserialization allows remote code execution.&lt;/p&gt;
&lt;p&gt;### Proof of Concept
Execute `bash run.sh`. The PoC uses Constructor to deserialize a payload
for RCE. RCE is demonstrated by using a payload which performs a http request to
http://127.0.0.1:8000.&lt;/p&gt;
&lt;p&gt;Example output of successful run of proof of concept:&lt;/p&gt;
&lt;p&gt;```
$ bash run.sh&lt;/p&gt;
&lt;p&gt;[+] Downloading snakeyaml if needed
[+] Starting mock HTTP server on 127.0.0.1:8000 to demonstrate RCE
nc: no process found
[+] Compiling and running Proof of Concept, which a payload that sends a HTTP request to mock web server.
[+] An exception is expected.
Exception:
Cannot create property=payload for JavaBean=Main$TestDataClass@3cbbc1e0
 in &amp;#39;string&amp;#39;, line 1, column 1:
    payload: !!javax.script.ScriptEn ... 
    ^
Can not set java.lang.String field Main$TestDataClass.payload to javax.script.ScriptEngineManager
 in &amp;#39;string&amp;#39;, line 1, column 10:
    payload: !!javax.script.ScriptEngineManag ... 
             ^&lt;/p&gt;
&lt;p&gt;at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:291)
	at org.yaml.snakeyaml.constru…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Maven: org.yaml:snakeyaml&lt;/p&gt;
&lt;p&gt;### Summary
SnakeYaml&amp;#39;s `Constructor` class, which inherits from `SafeConstructor`, allows
any type be deserialized given the following line:&lt;/p&gt;
&lt;p&gt;new Yaml(new Constructor(TestDataClass.class)).load(yamlContent);&lt;/p&gt;
&lt;p&gt;Types do not have to match the types of properties in the
target class. A `ConstructorException` is thrown, but only after a malicious
payload is deserialized.&lt;/p&gt;
&lt;p&gt;### Severity
High, lack of type checks during deserialization allows remote code execution.&lt;/p&gt;
&lt;p&gt;### Proof of Concept
Execute `bash run.sh`. The PoC uses Constructor to deserialize a payload
for RCE. RCE is demonstrated by using a payload which performs a http request to
http://127.0.0.1:8000.&lt;/p&gt;
&lt;p&gt;Example output of successful run of proof of concept:&lt;/p&gt;
&lt;p&gt;```
$ bash run.sh&lt;/p&gt;
&lt;p&gt;[+] Downloading snakeyaml if needed
[+] Starting mock HTTP server on 127.0.0.1:8000 to demonstrate RCE
nc: no process found
[+] Compiling and running Proof of Concept, which a payload that sends a HTTP request to mock web server.
[+] An exception is expected.
Exception:
Cannot create property=payload for JavaBean=Main$TestDataClass@3cbbc1e0
 in &amp;#39;string&amp;#39;, line 1, column 1:
    payload: !!javax.script.ScriptEn ... 
    ^
Can not set java.lang.String field Main$TestDataClass.payload to javax.script.ScriptEngineManager
 in &amp;#39;string&amp;#39;, line 1, column 10:
    payload: !!javax.script.ScriptEngineManag ... 
             ^&lt;/p&gt;
&lt;p&gt;at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:291)
	at org.yaml.snakeyaml.constru…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-mjmj-j48q-9wg2</guid>
    </item>
  </channel>
</rss>
