Heap-based buffer overflow in the rb_str_justify function in string.c in Ruby 1.9.1 before 1.9.1-p376 allows context-dependent attackers to execute arbitrary code via unspecified vectors involving (1) String#ljust, (2) String#center, or (3) String#rjust. NOTE: some of these details are obtained from third party information.
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
Link | Tags |
---|---|
http://www.osvdb.org/60880 | vdb entry |
https://exchange.xforce.ibmcloud.com/vulnerabilities/54674 | vdb entry |
http://www.ruby-lang.org/en/news/2009/12/07/heap-overflow-in-string/ | patch vendor advisory |
http://www.vupen.com/english/advisories/2009/3471 | vdb entry vendor advisory |
http://www.securityfocus.com/bid/37278 | vdb entry |
http://secunia.com/advisories/37660 | third party advisory vendor advisory |