# CVE-2020-36315: In RELIC before 2020-08-01, RSA PKCS#1 v1.5 signature forgery can occur because certain checks of the padding (and of the first two bytes)…

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-07T20:10:30.000Z
- Modified: 2026-06-17T03:15:17.360Z
- Weaknesses: CWE-327
- Assigned by: mitre

## Description

In RELIC before 2020-08-01, RSA PKCS#1 v1.5 signature forgery can occur because certain checks of the padding (and of the first two bytes) are inadequate. NOTE: this requires that a low public exponent (such as 3) is being used. The product, by default, does not generate RSA keys with such a low number.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- relic_project relic: before 2020-08-01

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/relic-toolkit/relic/issues/154> (exploit, third-party-advisory)
- <https://github.com/relic-toolkit/relic/tree/32eb4c257fc80328061d66639b1cdb35dbed51a2> (third-party-advisory)
- <https://github.com/relic-toolkit/relic/> (third-party-advisory)
- <https://github.com/relic-toolkit/relic/commit/76c9a1fdf19d9e92e566a77376673e522aae9f80> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-36315](https://www.cve.org/CVERecord?id=CVE-2020-36315), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-36315](https://nvd.nist.gov/vuln/detail/CVE-2020-36315), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-36315 · Whole record: https://cve.day/CVE-2020-36315.json · Rebuilt by cve.day 2026-11-25T22:57:57.758Z
