Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-16253

In sig_verify() in x509.c in axTLS version 2.1.3 and before, the PKCS#1 v1.5 signature verification does not properly verify the ASN.1 metadata. Consequently, a remote attacker can forge signatures when small public exponents are being used, which could lead to impersonation through fake X.509 certificates. This is an even more permissive variant of CVE-2006-4790 and CVE-2014-1568.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-16253
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:27 UTC · Revision 1

Source evidence

CVE-2018-16253

core-osv · Original source

Published 7 Nov 2018, 20:29 UTC

In sig_verify() in x509.c in axTLS version 2.1.3 and before, the PKCS#1 v1.5 signature verification does not properly verify the ASN.1 metadata. Consequently, a remote attacker can forge signatures when small public exponents are being used, which could lead to impersonation through fake X.509 certificates. This is an even more permissive variant of CVE-2006-4790 and CVE-2014-1568.

osv:CVE-2018-16253
Complete source record
{
  "id": "4c266ecc1b0668b72cf121e1a18ae53739f2877563abeb7d80bda4960a666035",
  "url": "https://osv.dev/vulnerability/CVE-2018-16253",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-16253",
    "summary": "In sig_verify() in x509.c in axTLS version 2.1.3 and before, the PKCS#1 v1.5 signature verification does not properly verify the ASN.1 metadata. Consequently, a remote attacker can forge signatures when small public exponents are being used, which could lead to impersonation through fake X.509 certificates. This is an even more permissive variant of CVE-2006-4790 and CVE-2014-1568.",
    "evidence": "osv:CVE-2018-16253",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-16253",
      "aliases": [
        "CVE-2018-16253"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/igrr/axtls-8266",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5efe2947ab45e81d84b5f707c51d1c64be52f36c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "5efe2947ab45e81d84b5f707c51d1c64be52f36c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16253.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-16253-3090bf7e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "108661851987972133158347054716703460683",
                    "14896255174603763604770523751983435879",
                    "120240012124074572250753975559093603406",
                    "45010925886924942386907557492617314856",
                    "115305286616551607897244325241390183963",
                    "9084237671732349361622604103010111563",
                    "185845852160614897619048903410496139504",
                    "208322761451658317154631074413909015154",
                    "185082032209968563001193921342815963010",
                    "186270198572434066780252391661755022115",
                    "50486728262798664783477895502371598539",
                    "238538377523240267513329349303468711107",
                    "244601293052885541233433686491443506785",
                    "57107941115571653783496538010191647563",
                    "218390482235484409823204904791605352948",
                    "278618590998667647087943783369648520885",
                    "166932922021684597834217713555700614848",
                    "195146750242824880305351287025864433794",
                    "22185783351391265490991248551830443790",
                    "84577917608870377487401127617600840478",
                    "181807139630374287586913659774436982587",
                    "57536454303877057962146740463074587417",
                    "233082035197181483690985219850815497923",
                    "258752981139989151020579234742060642985",
                    "117578550962584056793915946910351421511",
                    "61491189147592498635277465718922381231",
                    "108836589434530459216980942412049144973",
                    "335081944872175553627843886622382730268",
                    "95625288284106286882967882031022885083",
                    "49585425216726811453278729953818840069",
                    "237978599236179955971782873432814558865",
                    "339536106570935589585141430302204605375",
                    "294128945153324378199602375625233392002",
                    "202780183330052102017085865184175332675",
                    "235316235711897240953832705127279614660",
                    "19322163383816135294590054626317666890",
                    "149134396912841586962585068550949712513",
                    "154871753701657350703814844030645535224",
                    "138740526242742065281847547013745442303",
                    "236008771591026412195639438620995675865",
                    "303492404983386076464265066061129154306",
                    "93317831494390685477701447882423156453",
                    "165379616122019241837551638587367351881",
                    "165877849408296707887289760177956569788",
                    "260572460417766524035127727657875885064",
                    "15599565959541491860649101577670499488",
                    "285410099532478080544838165762270161618"
                  ]
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16253-94fc8e4b",
                "digest": {
                  "length": 389,
                  "function_hash": "74073868604478741200156603912144804076"
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c",
                  "function": "get_signature"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16253-c256e85e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "253007544034811596310265824059848257290",
                    "268133784929346848139382881450918463779",
                    "65170034753240938602689110438809907804",
                    "4989148451732204170605134390826381115"
                  ]
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/os_port.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16253-d6e58869",
                "digest": {
                  "length": 702,
                  "function_hash": "232285230700911005501498625380349597162"
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c",
                  "function": "sig_verify"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16253-ec948ef3",
                "digest": {
                  "length": 2514,
                  "function_hash": "47102076113973104952396175716829351788"
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c",
                  "function": "x509_verify"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:35:33Z"
          }
        }
      ],
      "modified": "2026-10-20T13:35:33.186965926Z",
      "provider": "osv",
      "references": [
        "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
        "https://sourceforge.net/p/axtls/mailman/message/36459928/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:axtls_project:axtls:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "axtls_project:axtls",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.1.3"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.1.3"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-16253",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387851,
  "published_at": "2018-11-07T20:29:00.667+00:00"
}