Medium
Security advisory
In Jenkins Gitea Plugin 1.4.4 and earlier, the implementation of Gitea personal access tokens did not support credentials masking, potentially exposing them through the build log.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-46685
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:27 UTC · Revision 1
Source evidence
In Jenkins Gitea Plugin 1.4.4 and earlier, the implementation of Gitea personal access tokens did not support credentials masking, potentially exposing them through the build log.
osv:CVE-2022-46685
Complete source record
{
"id": "c02dcf109cbb7f81a6ae6f3de9408ba8bca0a0145a8d8c7da94d178f2dbea3d6",
"url": "https://osv.dev/vulnerability/CVE-2022-46685",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-46685",
"summary": "In Jenkins Gitea Plugin 1.4.4 and earlier, the implementation of Gitea personal access tokens did not support credentials masking, potentially exposing them through the build log.",
"evidence": "osv:CVE-2022-46685",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2022-46685",
"aliases": [
"BIT-gitea-2022-46685",
"CVE-2022-46685",
"GHSA-x3qh-53qf-jxq9"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/jenkinsci/gitea-plugin",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b3b2bd869b91f9f1312bbbbf6128cad2cd86bd8c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gitea:gitea:*:*:*:*:*:jenkins:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.4.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"1.4.4",
"1.4.3",
"1.4.2",
"1.4.1",
"1.4.0--rc182.9eb947470fcf",
"gitea-1.3.0",
"gitea-1.2.1",
"gitea-1.2.0",
"gitea-1.1.2",
"gitea-1.1.1",
"gitea-1.1.0",
"gitea-1.0.8",
"gitea-1.0.7",
"gitea-1.0.6",
"gitea-1.0.5",
"gitea-1.0.4",
"gitea-1.0.3",
"gitea-1.0.2",
"gitea-1.0.1",
"gitea-1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-46685.json",
"vanir_signatures": [
{
"id": "CVE-2022-46685-2147a680",
"digest": {
"threshold": 0.9,
"line_hashes": [
"179979438285602534127706260912291779771",
"222442281756346699070942158940518639799",
"140562445392765526725886768051030009183",
"159353576604392391957463765281805192151",
"202682493992333699308777981891624404058",
"266475411166740443139649934384326385200",
"172830801844529888746125042406467369526",
"191226734031363294620595079261301709836",
"107402332736742228794034365041996065773",
"315910327068620196031592496065570876143",
"166280663404474262525395248933415974613"
]
},
"source": "https://github.com/jenkinsci/gitea-plugin/commit/b3b2bd869b91f9f1312bbbbf6128cad2cd86bd8c",
"target": {
"file": "src/main/java/org/jenkinsci/plugin/gitea/credentials/PersonalAccessTokenImpl.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2022-46685-8253791b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72474560186768502575003215344147364313",
"251438423927507060754658214655504522197",
"220853349072030490396877233921387382307",
"119227267564886319945481071877550562762",
"165306893200538820083087274660525032284",
"225910070191696114843820932440749415523",
"223304702450310056054047228063609493811",
"63986312918782680915652488672625927788",
"328258896201000808699230627338870288295",
"318139942641466351495637513705607289421",
"79910631057692913247208505811919682475",
"335108612523664430985854823865654858092",
"269596335353772204525008155468658112352",
"338869646953482694971212142887349518716",
"3599642153804076526905801176218251146",
"13916454470195114105488139138449568667",
"217115542932559788708702409917888256066",
"214555767607255851182937664895704211384",
"10258935471980038627393333647839640684",
"252152286096984552529214185809761819871",
"179644848646669930340923093583624445619",
"221346280669654943375794692091554581314",
"223300536724210892776866872781601787290",
"269372113870631786002997082269980524960",
"28240188202142862413462071814190602122",
"164814595964084428974350772034475803201",
"209473152779898445615874579944536218085",
"17897344123689083747236357021040725906",
"77031789903757585674638049771764337035",
"187375135658614148498287285781997943139"
]
},
"source": "https://github.com/jenkinsci/gitea-plugin/commit/b3b2bd869b91f9f1312bbbbf6128cad2cd86bd8c",
"target": {
"file": "src/main/java/org/jenkinsci/plugin/gitea/GiteaSCMBuilder.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2022-46685-8ee6aa07",
"digest": {
"length": 2205,
"function_hash": "1174965823066608444732711567943231579"
},
"source": "https://github.com/jenkinsci/gitea-plugin/commit/b3b2bd869b91f9f1312bbbbf6128cad2cd86bd8c",
"target": {
"file": "src/main/java/org/jenkinsci/plugin/gitea/GiteaSCMBuilder.java",
"function": "checkoutUriTemplate"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2022-46685-d04d9f93",
"digest": {
"threshold": 0.9,
"line_hashes": [
"216597736296725861330656219838766838827",
"278479068114525389764990380933298701743",
"164421837119167151412706882459788239513",
"272942079265756475915038351943092604308",
"283937142396895346576135552294733708614"
]
},
"source": "https://github.com/jenkinsci/gitea-plugin/commit/b3b2bd869b91f9f1312bbbbf6128cad2cd86bd8c",
"target": {
"file": "src/main/java/org/jenkinsci/plugin/gitea/credentials/PersonalAccessToken.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:29:03Z"
}
}
],
"modified": "2026-10-24T14:29:03.559158358Z",
"provider": "osv",
"references": [
"https://www.jenkins.io/security/advisory/2022-12-07/#SECURITY-2661"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:gitea:gitea:*:*:*:*:*:jenkins:*:*"
],
"vendor_product": "gitea:gitea",
"extracted_events": [
{
"range": [
{
"fixed": "1.4.5"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2022-46685",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443761,
"published_at": "2022-12-12T09:15:13.083+00:00"
}