GHSA-hr8g-6v94-x4m9

Suggest an improvement
Source
https://github.com/advisories/GHSA-hr8g-6v94-x4m9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-hr8g-6v94-x4m9/GHSA-hr8g-6v94-x4m9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hr8g-6v94-x4m9
Aliases
Related
Published
2023-07-05T03:30:23Z
Modified
2024-10-22T05:28:49.779895Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Bouncy Castle For Java LDAP injection vulnerability
Details

Bouncy Castle provides the X509LDAPCertStoreSpi.java class which can be used in conjunction with the CertPath API for validating certificate paths. Pre-1.73 the implementation did not check the X.500 name of any certificate, subject, or issuer being passed in for LDAP wild cards, meaning the presence of a wild car may lead to Information Disclosure.

A potential attack would be to generate a self-signed certificate with a subject name that contains special characters, e.g: CN=Subject*)(objectclass=. This will be included into the filter and provides the attacker ability to specify additional attributes in the search query. This can be exploited as a blind LDAP injection: an attacker can enumerate valid attribute values using the boolean blind injection technique. The exploitation depends on the structure of the target LDAP directory, as well as what kind of errors are exposed to the user.

Changes to the X509LDAPCertStoreSpi.java class add the additional checking of any X.500 name used to correctly escape wild card characters.

References

Affected packages

Maven / org.bouncycastle:bcprov-jdk18on

Package

Name
org.bouncycastle:bcprov-jdk18on
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-jdk18on

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.74

Affected versions

1.*

1.71
1.71.1
1.72
1.73

Maven / org.bouncycastle:bcprov-jdk15to18

Package

Name
org.bouncycastle:bcprov-jdk15to18
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-jdk15to18

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.74

Affected versions

1.*

1.63
1.64
1.65
1.66
1.67
1.68
1.69
1.70
1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-jdk14

Package

Name
org.bouncycastle:bcprov-jdk14
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-jdk14

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.49
Fixed
1.74

Affected versions

1.*

1.49
1.50
1.51
1.53
1.54
1.55
1.56
1.57
1.58
1.59
1.60
1.61
1.62
1.63
1.64
1.65
1.67
1.68
1.69
1.70
1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-ext-jdk14

Package

Name
org.bouncycastle:bcprov-ext-jdk14
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-ext-jdk14

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.49
Fixed
1.74

Affected versions

1.*

1.49
1.50
1.51
1.53
1.54
1.56
1.57
1.58
1.60
1.64
1.65
1.67
1.68
1.69
1.70
1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-ext-jdk15to18

Package

Name
org.bouncycastle:bcprov-ext-jdk15to18
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-ext-jdk15to18

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.74

Affected versions

1.*

1.64
1.67
1.68
1.69
1.70
1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-ext-jdk18on

Package

Name
org.bouncycastle:bcprov-ext-jdk18on
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-ext-jdk18on

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.74

Affected versions

1.*

1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-debug-jdk14

Package

Name
org.bouncycastle:bcprov-debug-jdk14
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-debug-jdk14

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.49
Fixed
1.74

Affected versions

1.*

1.55
1.59
1.60
1.64
1.68
1.69
1.70
1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-debug-jdk15to18

Package

Name
org.bouncycastle:bcprov-debug-jdk15to18
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-debug-jdk15to18

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.74

Affected versions

1.*

1.64
1.68
1.69
1.70
1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-debug-jdk18on

Package

Name
org.bouncycastle:bcprov-debug-jdk18on
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-debug-jdk18on

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.74

Affected versions

1.*

1.71
1.72
1.73

Maven / org.bouncycastle:bcprov-jdk15on

Package

Name
org.bouncycastle:bcprov-jdk15on
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-jdk15on

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.49
Last affected
1.70

Affected versions

1.*

1.49
1.50
1.51
1.52
1.53
1.54
1.55
1.56
1.57
1.58
1.59
1.60
1.61
1.62
1.63
1.64
1.65
1.65.01
1.66
1.67
1.68
1.69
1.70

Maven / org.bouncycastle:bcprov-ext-jdk15on

Package

Name
org.bouncycastle:bcprov-ext-jdk15on
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-ext-jdk15on

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.49
Last affected
1.70

Affected versions

1.*

1.49
1.50
1.51
1.52
1.53
1.54
1.55
1.56
1.57
1.58
1.59
1.60
1.61
1.62
1.63
1.64
1.65
1.66
1.67
1.68
1.69
1.70

Maven / org.bouncycastle:bcprov-debug-jdk15on

Package

Name
org.bouncycastle:bcprov-debug-jdk15on
View open source insights on deps.dev
Purl
pkg:maven/org.bouncycastle/bcprov-debug-jdk15on

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.49
Last affected
1.70

Affected versions

1.*

1.52
1.53
1.55
1.56
1.57
1.58
1.59
1.60
1.61
1.62
1.63
1.64
1.65
1.66
1.67
1.68
1.69
1.70