An issue was discovered in ThoughtWorks GoCD before 21.3.0. An attacker who has compromised a GoCD agent can upload a malicious file into a directory of a GoCD server. They can control the filename but the directory is placed inside of a directory that they can't control.
[
    {
        "source": "https://github.com/gocd/gocd/commit/c22e0428164af25d3e91baabd3f538a41cadc82f",
        "target": {
            "file": "server/src/test-fast/java/com/thoughtworks/go/server/controller/ArtifactsControllerTest.java"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2021-43290-38f2dc3d",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "35217849621521978421938517761391841788",
                "178442900729342129108185183933724408964",
                "173803221052513202178023264493049698519",
                "272787890143355362557536696589923164456",
                "236950073862179665243691743993640232322",
                "66356137965835426388486276886875191017",
                "5041689735885834485693590133693548826"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://github.com/gocd/gocd/commit/c22e0428164af25d3e91baabd3f538a41cadc82f",
        "target": {
            "file": "server/src/main/java/com/thoughtworks/go/server/controller/ArtifactsController.java"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2021-43290-a055a163",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "297153862272478249381986414749752215030",
                "215072615915565691360715005872536267426",
                "36185728995397713624474045491130696535",
                "33713468704060082642760603567839850354",
                "137605329014485206095835539230905619230",
                "327973978035111290227806121788312738332",
                "34785563908314936746383719035481271612",
                "339757743281603299907990493356125819669",
                "290549176892605093098220810150544117856",
                "27528873846200926205447993033673972604",
                "61948491231241368923281192716349665369",
                "190031166285777672832662188882211658775",
                "168299212905676645556210339635249599448"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://github.com/gocd/gocd/commit/c22e0428164af25d3e91baabd3f538a41cadc82f",
        "target": {
            "function": "putArtifact",
            "file": "server/src/main/java/com/thoughtworks/go/server/controller/ArtifactsController.java"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2021-43290-a7721f85",
        "digest": {
            "length": 918.0,
            "function_hash": "217065692591585174985092970000626779641"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://github.com/gocd/gocd/commit/c22e0428164af25d3e91baabd3f538a41cadc82f",
        "target": {
            "function": "postArtifact",
            "file": "server/src/main/java/com/thoughtworks/go/server/controller/ArtifactsController.java"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2021-43290-b64e4db9",
        "digest": {
            "length": 1552.0,
            "function_hash": "163768593461045714372941000096148634503"
        },
        "signature_type": "Function"
    }
]