Skip to content
Memory corruption Disclosed report Intermediate CVE-2015-0288

X509_to_X509_REQ NULL pointer deref

X509_to_X509_REQ crashes with a NULL pointer dereference when given a certificate with an invalid key; the function is rarely used.

geeknik Follow

Originally disclosed on HackerOne

  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after under an hour

X509_to_X509_REQ NULL pointer deref (CVE-2015-0288)

Severity: Low

The function X509_to_X509_REQ will crash with a NULL pointer dereference if the certificate key is invalid. This function is rarely used in practice.

This issue affects all current OpenSSL versions: 1.0.2, 1.0.1, 1.0.0 and 0.9.8.

OpenSSL 1.0.2 users should upgrade to 1.0.2a OpenSSL 1.0.1 users should upgrade to 1.0.1m. OpenSSL 1.0.0 users should upgrade to 1.0.0r. OpenSSL 0.9.8 users should upgrade to 0.9.8zf.

This issue was discovered by Brian Carpenter and a fix developed by Stephen Henson of the OpenSSL development team.

The original report as published on HackerOne, by geeknik. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the function does not check that the certificate's public key is valid before dereferencing it, leading to a NULL pointer dereference.

Impact

The function crashes with a NULL pointer dereference on an invalid certificate key; it is rarely used in practice.

What the attacker needed

Application calls X509_to_X509_REQ; certificate key is invalid

The fix

The issue was fixed in OpenSSL 1.0.2a, 1.0.1m, 1.0.0r and 0.9.8zf, so users should upgrade to those versions.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A NULL pointer dereference is a programming error where a program uses a memory address pointing to nothing, usually crashing. Here, an OpenSSL function that converts a certificate into a certificate request crashes if the certificate key is invalid.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by geeknik

View all

79 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.