A work machine comprising: a machine body; a work implement mounted rotatably on the machine body and including a plurality of driven members (11, 12, 8) connected rotatably with each other; a plurality of actuators (5, 6, 7) driving the plurality of driven members (11, 12 8); a plurality of operation devices (1c, 1d) for operating the plurality of driven members (11, 12, 8); a posture detection device (13a - 13d) detecting a posture of the machine body and the plurality of driven members (11, 12 8); a design data input device for inputting data of a terrain profile; and an information processing device controlling driving of the plurality of actuators (5, 6, 7) in response to each of operation signals inputted from the plurality of operation devices (1c, 1d) according to an operation on the plurality of operation devices (1c, 1d), the information processing device, extracting position information of a target surface that serves as a work object from the design data, calculating a target velocity of a work point at a predetermined position on the work implement using each of the operation signals of the plurality of operation devices (1c, 1d), and calculating a distance between the work point and the target surface on a basis of posture information of the plurality of driven members (11, 12, 8) and position information of the target surface and performing a correction of a velocity component of the target velocity, the velocity component being perpendicular to the target surface, according to the distance such that the work point does not penetrate the target surface, characterized in that the information processing device is configured to, before calculating the target velocity, calculate a contribution of each of the operation signals to an excavation velocity which is defined as a velocity component of the work point, the velocity component being parallel to the target surface, and perform weighting on each of the operation signals according to the contribution, on a basis of the posture information of the plurality of driven members (11, 12, 8) and the position information of the target surface, thereby performing the correction mainly on an operation signal with the contribution being light, and suppressing the correction on an operation signal with the contribution being great. a machine body; a work implement mounted rotatably on the machine body and including a plurality of driven members (11, 12, 8) connected rotatably with each other; a plurality of actuators (5, 6, 7) driving the plurality of driven members (11, 12 8); a plurality of operation devices (1c, 1d) for operating the plurality of driven members (11, 12, 8); a posture detection device (13a - 13d) detecting a posture of the machine body and the plurality of driven members (11, 12 8); a design data input device for inputting data of a terrain profile; and an information processing device controlling driving of the plurality of actuators (5, 6, 7) in response to each of operation signals inputted from the plurality of operation devices (1c, 1d) according to an operation on the plurality of operation devices (1c, 1d), the information processing device, extracting position information of a target surface that serves as a work object from the design data, calculating a target velocity of a work point at a predetermined position on the work implement using each of the operation signals of the plurality of operation devices (1c, 1d), and calculating a distance between the work point and the target surface on a basis of posture information of the plurality of driven members (11, 12, 8) and position information of the target surface and performing a correction of a velocity component of the target velocity, the velocity component being perpendicular to the target surface, according to the distance such that the work point does not penetrate the target surface, extracting position information of a target surface that serves as a work object from the design data, calculating a target velocity of a work point at a predetermined position on the work implement using each of the operation signals of the plurality of operation devices (1c, 1d), and calculating a distance between the work point and the target surface on a basis of posture information of the plurality of driven members (11, 12, 8) and position information of the target surface and performing a correction of a velocity component of the target velocity, the velocity component being perpendicular to the target surface, according to the distance such that the work point does not penetrate the target surface,